  <hr/>
  <div class="attachment goals">
    <div class="title">
      <div style="float:right;">
        <%= display_progress(goal) %>
      </div>

      <b><%= link_to(h(goal.name), goals_url(:id => goal.id)) %></b>
    </div>
    <div class="section">
      <table>
        <tr>
          <td style="width: 100px;">
            <b>Summary:</b> 
          </td>
          <td>
            <%= h(goal.summary) %>
          </td>
        </tr>
        <% if !goal.description.blank? %>
        <tr>
          <td>
            <b>Description:</b> 
          </td>
          <td>
            <%= h(goal.description) %>
          </td>
        </tr>
        <% end %>
        <tr>
          <td>
            <b><%= goal.completed? ? "Results" : "Progress" %>:</b> 
          </td>
          <td>
            <%= (goal.progress.success.to_f / goal.progress.total * 100).ceil %>% successful <%= goal.completed? ? "(completed)" : "to date" %> 
          </td>
        </tr>
      </table>
    </div>
  </div>
